<!DOCTYPE html>
<meta charset="UTF-8">
<div style="margin: 10px 0;">
	<a href="#" data-type="button" onclick="start()">开始</a>
</div>
<div id="progressId" data-type="progressbar" style="width: 500px;"></div>
<script>
	function start() {
	    var value = $('#progressId').progressbar('getValue');
	    if (value < 100) {
		    value += Math.floor(Math.random() * 10);
		    $('#progressId').progressbar('setValue', value);
		    setTimeout(arguments.callee, 200);
	    }
    };
</script>
